package com.my.study.redisson.register;

import com.my.study.redisson.register.health.RegisterHealth;

/**
 * @author: yidujun
 * @create: 2021/11/23 17:17
 */
public class RegisterNodeRefreshTask implements Runnable {

    private final RegisterHealth registerHealth;

    public RegisterNodeRefreshTask(RegisterHealth registerHealth) {
        this.registerHealth = registerHealth;
    }

    @Override
    public void run() {
        registerHealth.heartbeat();
    }
}
